<html>
<head><meta charset="utf-8"><title>How do I deprecate a feature gate? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html">How do I deprecate a feature gate?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227722595"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227722595" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227722595">(Feb 25 2021 at 06:07)</a>:</h4>
<p>I want to deprecate <code>#![feature(external_doc)]</code> (so people have some warning before it's removed). Is there a way to deprecate an entire feature gate?</p>



<a name="227722819"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227722819" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227722819">(Feb 25 2021 at 06:10)</a>:</h4>
<p>found it, it goes in <code>rustc_feature::removed</code>. Unfortunately that gives a hard error instead of a warning. I think I'll just add warnings at each use site, that will allow me to give a structured suggestion as well.</p>



<a name="227769268"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227769268" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227769268">(Feb 25 2021 at 13:50)</a>:</h4>
<p>what's the purpose of deprecation?</p>



<a name="227769434"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227769434" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227769434">(Feb 25 2021 at 13:52)</a>:</h4>
<p>if you're gutting the functionality, Its probably best  to remove the functionality itself, without removing the gate. This will start throwing out unused attribute warnings</p>



<a name="227770285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770285">(Feb 25 2021 at 13:58)</a>:</h4>
<p>That seems like a bad user experience though - I want people to switch to <code>doc = include_str!</code>, not stop using this altogether. If they just get "unused attribute" they won't know how to switch.</p>



<a name="227770628"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770628" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770628">(Feb 25 2021 at 14:00)</a>:</h4>
<p><span aria-label="shrug" class="emoji emoji-1f937" role="img" title="shrug">:shrug:</span> on one hand its nice that we're looking to make transition smoother, on the other hand we never in the past did anything of the sort even when making larger incompatible breaking changes to unstable features.</p>



<a name="227770706"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770706" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770706">(Feb 25 2021 at 14:01)</a>:</h4>
<p>There's always the unstable book if folks want to know who moved their cheese</p>



<a name="227770743"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770743" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770743">(Feb 25 2021 at 14:01)</a>:</h4>
<p>So it'd be a fair game to just remove the entire feature. Removing the feature also gives you an opportunity to tell people how to fix code, AFAIR.</p>



<a name="227770885"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770885" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770885">(Feb 25 2021 at 14:02)</a>:</h4>
<p>My primary concern is the tradeoff between changes necessary to compiler vs. the value (how many people are using this feature?)</p>



<a name="227770963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227770963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227770963">(Feb 25 2021 at 14:03)</a>:</h4>
<p>if its just 1 or 2 places in the compiler that need adjusting to print out a warning, that seems fine.</p>



<a name="227772124"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772124" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772124">(Feb 25 2021 at 14:10)</a>:</h4>
<p>yeah, this is just one spot in rustdoc</p>



<a name="227772142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772142">(Feb 25 2021 at 14:10)</a>:</h4>
<p>and the feature is used a lot because <a href="http://docs.rs">docs.rs</a> uses nightly</p>



<a name="227772149"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772149" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772149">(Feb 25 2021 at 14:10)</a>:</h4>
<p>(and rustdoc is bad at stabilizing things)</p>



<a name="227772399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772399">(Feb 25 2021 at 14:12)</a>:</h4>
<p>I remember discussion somewhere else that people don't generally run rustdoc locally.</p>



<a name="227772445"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772445" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772445">(Feb 25 2021 at 14:13)</a>:</h4>
<p>and <a href="http://docs.rs">docs.rs</a> doesn't present any build logs? So in practice I have a suspicion that majority of users of the feature will not see the warnings.</p>



<a name="227772541"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772541" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772541">(Feb 25 2021 at 14:13)</a>:</h4>
<p><span class="user-mention silent" data-user-id="123586">nagisa</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F/near/227772445">said</a>:</p>
<blockquote>
<p>and <a href="http://docs.rs">docs.rs</a> doesn't present any build logs? So in practice I have a suspicion that majority of users of the feature will not see the warnings.</p>
</blockquote>
<p>it does: <a href="https://docs.rs/crate/spirq/0.4.12/builds/354506">https://docs.rs/crate/spirq/0.4.12/builds/354506</a></p>



<a name="227772563"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227772563" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227772563">(Feb 25 2021 at 14:13)</a>:</h4>
<p>but yeah that's always a drawback :/ better than not having it at all though</p>



<a name="227777147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227777147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227777147">(Feb 25 2021 at 14:41)</a>:</h4>
<p>looks pretty good :)</p>
<div class="codehilite"><pre><span></span><code>warning: doc(include) is deprecated
 --&gt; /home/joshua/test-rustdoc/include.rs:5:1
  |
5 | #[doc(include = &quot;docs.md&quot;)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
help: use `#![feature(extended_key_value_attributes)]` instead
  |
5 | #![doc = include_str!(&quot;docs.md&quot;)]
</code></pre></div>



<a name="227777935"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227777935" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227777935">(Feb 25 2021 at 14:46)</a>:</h4>
<p>can a HirId that has no corresponding DefId have attributes?</p>



<a name="227777973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227777973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227777973">(Feb 25 2021 at 14:46)</a>:</h4>
<p>I guess statements, but rustdoc doesn't look at function bodies</p>



<a name="227778636"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227778636" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227778636">(Feb 25 2021 at 14:51)</a>:</h4>
<p>is there a way to tell if a span is local to the current crate?</p>



<a name="227787714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227787714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227787714">(Feb 25 2021 at 15:46)</a>:</h4>
<p>crate_id == LOCAL_CRATE?</p>



<a name="227788311"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227788311" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227788311">(Feb 25 2021 at 15:49)</a>:</h4>
<p>where do I get the crate_id from?</p>



<a name="227788462"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227788462" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227788462">(Feb 25 2021 at 15:50)</a>:</h4>
<p>A def id contains the crate id.</p>



<a name="227788530"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227788530" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227788530">(Feb 25 2021 at 15:50)</a>:</h4>
<p>I'm asking about the span, not the DefId.</p>



<a name="227788716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227788716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227788716">(Feb 25 2021 at 15:51)</a>:</h4>
<p>in the meantime I restructured the code so that it passes in <code>def_id.is_local()</code> but I'm not sure I did it correctly everywhere <a href="https://github.com/rust-lang/rust/commit/f550f0d8cf4b2cbcbf7e7feb70cbc8955fd285fd">https://github.com/rust-lang/rust/commit/f550f0d8cf4b2cbcbf7e7feb70cbc8955fd285fd</a></p>



<a name="227788980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227788980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227788980">(Feb 25 2021 at 15:52)</a>:</h4>
<p>in particular it's less granular than I'd like for merged attributes</p>



<a name="227789014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227789014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227789014">(Feb 25 2021 at 15:53)</a>:</h4>
<p>I'd prefer to treat documentation on the re-export differently than documentation on the original</p>



<a name="227797974"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227797974" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227797974">(Feb 25 2021 at 16:45)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> What are the plans for stabilizing <code>doc=include_str!</code>?</p>



<a name="227798003"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227798003" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227798003">(Feb 25 2021 at 16:45)</a>:</h4>
<p>I would love to use it, often.</p>



<a name="227798057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227798057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227798057">(Feb 25 2021 at 16:46)</a>:</h4>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span> I'm not sure, you'd have to ask <span class="user-mention" data-user-id="123856">@Vadim Petrochenkov</span></p>



<a name="227798104"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227798104" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227798104">(Feb 25 2021 at 16:46)</a>:</h4>
<p>I haven't heard any concerns about it so far, it was added in november: <a href="https://github.com/rust-lang/rust/issues/78835">https://github.com/rust-lang/rust/issues/78835</a></p>



<a name="227868076"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/227868076" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#227868076">(Feb 26 2021 at 01:24)</a>:</h4>
<p>fyi: <a href="https://github.com/rust-lang/rust/pull/82539">https://github.com/rust-lang/rust/pull/82539</a></p>



<a name="234989224"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20deprecate%20a%20feature%20gate%3F/near/234989224" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F.html#234989224">(Apr 17 2021 at 13:38)</a>:</h4>
<p><span class="user-mention silent" data-user-id="239881">Josh Triplett</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20do.20I.20deprecate.20a.20feature.20gate.3F/near/227797974">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> What are the plans for stabilizing <code>doc=include_str!</code>?</p>
</blockquote>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span> if you want to stabilize it you can start an FCP on <a href="https://github.com/rust-lang/rust/pull/83366">https://github.com/rust-lang/rust/pull/83366</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>